package com.hanserwei.mydemo.stream;

import java.util.stream.Stream;

public class ConcatTest1 {
    public static void main(String[] args) {
        //1.合并
        Stream<Integer> a = Stream.of(1, 2, 3);
        Stream<Integer> b = Stream.of(4, 5, 6);
        Stream.concat(a, b).forEach(System.out::print);
    }
}
